// instance
function myInstaceof(obj,OBJ){
    let obj_pro = obj.__proto__;
    let objPro = OBJ.prototype;
    while(true){
        if(obj_pro==null){
            return false

        }else if(obj_pro == objPro){
            return true
        }
        obj_pro = obj_pro.__proto__
    }

}

// new 实例的__proto__指向
function myNew(obj,...args){
    let objPro = Object.create(obj.prototype);
    obj.apply(objPro,args);
    return objPro
}